﻿namespace Yipusoft.Account.BLL
{
    using System;
    using System.Collections.Generic;
    using Yipusoft.Account.DAL;
    using Yipusoft.Account.Model;

    public class Menu
    {
        public static bool Delete(string MenuID)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.Delete(MenuID);
        }

        public static bool Exsits(string MenuID)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.Exsits(MenuID);
        }

        public static List<MenuInfo> GetList(string StrWhere)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.GetList(StrWhere);
        }

        public static MenuInfo GetMenu(string MenuID)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.GetMenu(MenuID);
        }

        public static bool Insert(MenuInfo Menu)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.Insert(Menu);
        }

        public static bool Update(MenuInfo Menu)
        {
            Yipusoft.Account.DAL.Menu menu = new Yipusoft.Account.DAL.Menu();
            return menu.Update(Menu);
        }
    }
}

